

#include "Object.h"
#include "SplittedSurface.h"

class StillItem: public Object {

	public:
		StillItem(float x_, float y_,  std::string imageName_, int numberOfSurfaces_, int surfacesWidth_,\
					int surfacesHeight_, int timeUntilNextFrame_);


		StillItem(float x_, float y_,  std::string imageName_, int numberOfSurfaces_, int surfacesWidth_,\
					int surfacesHeight_, int timeUntilNextFrame_, int firstFrame);

        StillItem(float x_, float y_,  std::string imageName_, int w_);

        virtual ~StillItem(void);

		void draw(void);
		void animate(void);
		void handleCollisionWithObject(Object *o);
	private:
		//SDL_Surface **surfaces;
		SplittedSurface *sprites;
		int frame;
		int frameCounter;
		int timeUntilNextFrame;
		int numberOfFrames;
};

